package com.tbit.manager.api;

import com.tbit.manager.enums.ApiConstants;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

@FeignClient(name = ApiConstants.NAME)
public interface TerControlApi {

    String PREFIX = ApiConstants.PREFIX + "/terControl";

    /**
     * @description: 获取车辆指令日志
     * @author: mo.shanyong
     * @date: 2025/2/26 16:38
     * @param: terControlDTOStr 搜索参数
     * @return: java.util.Map<java.lang.String, java.lang.Object>
     */
    @GetMapping(value = PREFIX + "/getOrderHis")
    Map<String,Object> queryOrderHis(@RequestParam("terControlDTOStr") String terControlDTOStr);

    /**
     * @description: 获取还车指令日志
     * @author: mo.shanyong
     * @date: 2025/2/26 16:40
     * @param: terControlDTOStr
     * @return: java.util.Map<java.lang.String, java.lang.Object>
     */
    @GetMapping(value = PREFIX + "/queryReturnBikeLog")
    Map<String,Object> queryReturnBikeLog(@RequestParam("terControlDTOStr") String terControlDTOStr);
}
